<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <meta charset="UTF-8"/>

    <title>Title</title>
</head>
<body>
<h1 align="center">欢迎来到首页</h1>

    <div align="center">
        <input type="button" value="查看"/>
        <input type="button" value="编辑"/>
        <input type="button" value="下载"/>
        <div sec:authorize="hasRole('ROLE_ADMIN')">
            <input type="button" value="删除"/>
            <input type="button" value="退回"/>
        </div>
        <div sec:authorize="hasRole('ROLE_USER')">
            <input type="button" value="提交"/>
        </div>
    </div>

</body>
</html>